package chain_apply

import (
	"chain_bridge_service/internal/pkg/core"
	"chain_bridge_service/internal/repository/mongodb"
)

var _ Service = (*service)(nil)

type Service interface {
	i()
	Create(ctx core.Context, keyData *RequestData) error
	List(ctx core.Context, userId string, from string, pageIndex uint, pageSize uint) (total int64, productList []ResponseData, err error)
	GetAdminList(ctx core.Context, pageIndex uint, pageSize uint) (total int64, productList []ResponseAdminData, err error)
}

type service struct {
	db mongodb.Repo
}

func New(db mongodb.Repo) Service {
	return &service{
		db: db,
	}
}

func (s *service) i() {}
